package com.zonda.sampleretrofit2;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.zonda.sampleretrofit2.view.MainFragment;

public class MainActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Contants.APP_CONTEXT = getApplicationContext();

    setContentView(R.layout.activity_main);
    Log.i(Contants.LOG_TAG, "onCreate ");

    getSupportFragmentManager().beginTransaction().
        replace(R.id.content_view, MainFragment.newInstance()).commit();

//    NewsListTagView tagView = (NewsListTagView) findViewById(R.id.test_tag_view);
////    tagView.setNewsAuthorText("author:树下-fp");
////    tagView.setNewsIssueText("1小时前");
//    assert tagView != null;
//    tagView.setTagUri(Uri.parse(Contants.ICON_URL));


  }
}
